package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;

import java.util.List;
import java.util.Map;

public interface GoodsService {


    ServiceVO getCode();


    Map<String, Object> getListInventory(Integer page, Integer rows, String codeOrName,Integer goodsTypeId);


    Map<String, Object> getUnit();


    void saveOrUpdate(Goods goods, Integer goodsId);

    void deleteGoods(Integer goodsId);

    Map<String, Object> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    Map<String, Object> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);

    void updateInventoryQuantityByGoodsId(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);


    Integer deleteGoodsByGoodsId(Integer goodsId);

    Map<String, Object> getListAlarm();

}
